package jjn.time_api.case2;

import java.time.LocalDate;
import java.time.temporal.ChronoUnit;
import java.util.Scanner;

/**
 * @author Jjn
 * @since 2023/8/16 13:39
 */
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            String line = scanner.nextLine();
            LocalDate date = LocalDate.parse(line);
            int year = date.getYear();
            LocalDate start = LocalDate.of(year, 1, 1);
            long days = ChronoUnit.DAYS.between(start, date) + 1;
            System.out.println(days);
        }
    }
}
